<!DOCTYPE html>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<%@ include file="../core/core.jsp"%>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="renderer" content="webkit">

    <title>个人收益</title>
    <meta name="keywords" content="叮当猫">
    <meta name="description" content="叮当猫">

    <style>
        table.dataTable thead .sorting:after{
            content:'';
        }
    </style>
</head>

<body>

<div class="wrapper wrapper-content animated fadeInRight">

    <div id="idBox" style="display: none;"><%=request.getAttribute("agentId")%></div>

    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>基本 <small>查找，结果</small></h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">

                    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid"><div class="row" style="margin-bottom: 20px;">
                        <div class="col-sm-10">
                            <div id="DataTables_Table_0_filter" class="dataTables_filter">
                                <label style="margin: 0 15px;">店铺名称：<input type="text" id="shopName" class="form-control input-sm" aria-controls="DataTables_Table_0"></label>
                                <div class="form-group">
                                    <label style="margin: 0 15px;">时间：</label>
                                    <input id="datetimepicker" class="laydate-icon form-control layer-date" data-date-format="yyyy-mm-dd hh:ii"> <span>—</span>
                                    <input id="datetimepicker2" class="laydate-icon form-control layer-date" data-date-format="yyyy-mm-dd hh:ii">
                                    <span class="m-r m-l time-cur time-act" id="today">今天</span><span class="m-r">|</span><span> 最近： </span><span class="m-r time-cur" id="oneMonth"> 1个月 </span><span class="m-r time-cur" id="thrMonth"> 3个月 </span><span class="m-r time-cur" id="oneYear"> 一年 </span>
                                </div>
                                <label style="margin: 15px 15px;">商家营业额：<input type="text" id="minMoney" class="form-control input-sm" aria-controls="DataTables_Table_0" placeholder="最小金额"> <span>—</span>
                                    <input type="text" id="maxMoney" class="form-control input-sm" aria-controls="DataTables_Table_0" placeholder="最大金额">
                                </label>
                                <label style="margin: 0 15px;">业务员账号：<input type="text" id="userName" class="form-control input-sm" aria-controls="DataTables_Table_0"></label>
                                <button class="btn btn-primary" style="margin-left: 139px;" id="refer">查询</button>
                            </div>
                        </div>
                    </div>

                        <table class="table table-striped table-bordered table-hover dataTables-example dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_0_info">
                            <thead>
                            <tr role="row">
                                <th class="sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending">代理id</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 150px;">代理真实姓名</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 260px;">代理区域级别</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 132px;">是否有效</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 200px;">代理联系电话</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 162px;">代理城市</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 162px;">业务员</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 162px;">总业绩</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 162px;">店铺总数</th>
                            </tr>
                            </thead>
                            <tbody id="id-record">
                            <!--<tr class="gradeA odd">-->
                            <!--<td class="sorting_1">14</td>-->
                            <!--<td class=" ">100</td>-->
                            <!--<td class=" ">2</td>-->
                            <!--<td class="center ">ky</td>-->
                            <!--<td class="center ">待审核</td>-->
                            <!--<td class="sorting_1">15093112512</td>-->
                            <!--<td class=" ">1</td>-->
                            <!--<td class=" ">2017-02-01 09:09</td>-->
                            <!--<td class="center ">z-097967897878978</td>-->
                            <!--<td class="center ">2017-02-02 10:10</td>-->
                            <!--</tr>-->
                            </tbody>
                        </table>

                        <div class="col-sm-2 m-b">商家营业额：<span id="shopVolume"></span></div>
                        <div class="col-sm-2 m-b">个人收益：<span id="myIncome"></span></div>
                        <div class="col-sm-2 m-b">个人提点：<span id="myRate"></span></div>
                        <div class="col-sm-2 m-b salesBox" style="display: none;">业务员收益：<span id="salesIncome"></span></div>
                        <div class="col-sm-2 m-b salesBox" style="display: none;">业务员提点：<span id="salesRate"></span></div>
                        <table class="table table-striped table-bordered table-hover dataTables-example dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
                            <thead>
                            <tr role="row">
                                <th class="sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending">#</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 300px;">店铺名称</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 300px;">代理收益</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 300px;">业务员收益</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 300px;">业务员</th>
                                <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 300px;">是否主店</th>
                            </tr>
                            </thead>
                            <tbody id="withdraw-record">
                            <!--<tr class="gradeA odd">-->
                            <!--<td class="sorting_1">14</td>-->
                            <!--<td class=" ">100</td>-->
                            <!--<td class=" ">2</td>-->
                            <!--<td class="center ">ky</td>-->
                            <!--<td class="center ">待审核</td>-->
                            <!--<td class="sorting_1">15093112512</td>-->
                            <!--<td class=" ">1</td>-->
                            <!--<td class=" ">2017-02-01 09:09</td>-->
                            <!--<td class="center ">z-097967897878978</td>-->
                            <!--<td class="center ">2017-02-02 10:10</td>-->
                            <!--</tr>-->
                            </tbody>
                        </table><div class="row"><div class="col-sm-6"><div class="dataTables_info" id="DataTables_Table_0_info" role="alert" aria-live="polite" aria-relevant="all">共 <span id="record"></span> 项</div></div><div class="col-sm-6"><div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate"><ul class="pagination"><li class="paginate_button previous disabled" aria-controls="DataTables_Table_0" tabindex="0" id="DataTables_Table_0_previous"><a href="#">上一页</a></li><li class="paginate_button active" aria-controls="DataTables_Table_0" tabindex="0"><a href="#">1</a></li><li class="paginate_button " aria-controls="DataTables_Table_0" tabindex="0"><a href="#">2</a></li><li class="paginate_button " aria-controls="DataTables_Table_0" tabindex="0"><a href="#">3</a></li><li class="paginate_button " aria-controls="DataTables_Table_0" tabindex="0"><a href="#">4</a></li><li class="paginate_button " aria-controls="DataTables_Table_0" tabindex="0"><a href="#">5</a></li><li class="paginate_button " aria-controls="DataTables_Table_0" tabindex="0"><a href="#">6</a></li><li class="paginate_button next" aria-controls="DataTables_Table_0" tabindex="0" id="DataTables_Table_0_next"><a href="#">下一页</a></li></ul></div></div></div></div>
                </div>
            </div>
        </div>
    </div>
</div>

</div>


<script src="../static/js/agent/detail.js" charset="utf-8"></script>
</body>

</html>
